3.329 \(\int \frac{c+d x+e x^2}{x \left (a+b x^3\right )} \, dx\)

Optimal. Leaf size=184 \[ -\frac{\left (d-\frac{\sqrt [3]{a} e}{\sqrt [3]{b}}\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 a^{2/3} \sqrt [3]{b}}+\frac{\left (\sqrt [3]{b} d-\sqrt [3]{a} e\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} b^{2/3}}-\frac{\left (\sqrt [3]{a} e+\sqrt [3]{b} d\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a^{2/3} b^{2/3}}-\frac{c \log \left (a+b x^3\right )}{3 a}+\frac{c \log (x)}{a} \]

[Out]

-(((b^(1/3)*d + a^(1/3)*e)*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(S
qrt[3]*a^(2/3)*b^(2/3))) + (c*Log[x])/a + ((b^(1/3)*d - a^(1/3)*e)*Log[a^(1/3) +
 b^(1/3)*x])/(3*a^(2/3)*b^(2/3)) - ((d - (a^(1/3)*e)/b^(1/3))*Log[a^(2/3) - a^(1
/3)*b^(1/3)*x + b^(2/3)*x^2])/(6*a^(2/3)*b^(1/3)) - (c*Log[a + b*x^3])/(3*a)

_______________________________________________________________________________________

Rubi [A]  time = 0.432794, antiderivative size = 184, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 8, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.348 \[ -\frac{\left (d-\frac{\sqrt [3]{a} e}{\sqrt [3]{b}}\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{6 a^{2/3} \sqrt [3]{b}}+\frac{\left (\sqrt [3]{b} d-\sqrt [3]{a} e\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{3 a^{2/3} b^{2/3}}-\frac{\left (\sqrt [3]{a} e+\sqrt [3]{b} d\right ) \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} a^{2/3} b^{2/3}}-\frac{c \log \left (a+b x^3\right )}{3 a}+\frac{c \log (x)}{a} \]

Antiderivative was successfully verified.

[In]  Int[(c + d*x + e*x^2)/(x*(a + b*x^3)),x]

[Out]

-(((b^(1/3)*d + a^(1/3)*e)*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(S
qrt[3]*a^(2/3)*b^(2/3))) + (c*Log[x])/a + ((b^(1/3)*d - a^(1/3)*e)*Log[a^(1/3) +
 b^(1/3)*x])/(3*a^(2/3)*b^(2/3)) - ((d - (a^(1/3)*e)/b^(1/3))*Log[a^(2/3) - a^(1
/3)*b^(1/3)*x + b^(2/3)*x^2])/(6*a^(2/3)*b^(1/3)) - (c*Log[a + b*x^3])/(3*a)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 72.5788, size = 170, normalized size = 0.92 \[ \frac{c \log{\left (x \right )}}{a} - \frac{c \log{\left (a + b x^{3} \right )}}{3 a} - \frac{\left (\sqrt [3]{a} e - \sqrt [3]{b} d\right ) \log{\left (\sqrt [3]{a} + \sqrt [3]{b} x \right )}}{3 a^{\frac{2}{3}} b^{\frac{2}{3}}} + \frac{\left (\sqrt [3]{a} e - \sqrt [3]{b} d\right ) \log{\left (a^{\frac{2}{3}} - \sqrt [3]{a} \sqrt [3]{b} x + b^{\frac{2}{3}} x^{2} \right )}}{6 a^{\frac{2}{3}} b^{\frac{2}{3}}} - \frac{\sqrt{3} \left (\sqrt [3]{a} e + \sqrt [3]{b} d\right ) \operatorname{atan}{\left (\frac{\sqrt{3} \left (\frac{\sqrt [3]{a}}{3} - \frac{2 \sqrt [3]{b} x}{3}\right )}{\sqrt [3]{a}} \right )}}{3 a^{\frac{2}{3}} b^{\frac{2}{3}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x**2+d*x+c)/x/(b*x**3+a),x)

[Out]

c*log(x)/a - c*log(a + b*x**3)/(3*a) - (a**(1/3)*e - b**(1/3)*d)*log(a**(1/3) +
b**(1/3)*x)/(3*a**(2/3)*b**(2/3)) + (a**(1/3)*e - b**(1/3)*d)*log(a**(2/3) - a**
(1/3)*b**(1/3)*x + b**(2/3)*x**2)/(6*a**(2/3)*b**(2/3)) - sqrt(3)*(a**(1/3)*e +
b**(1/3)*d)*atan(sqrt(3)*(a**(1/3)/3 - 2*b**(1/3)*x/3)/a**(1/3))/(3*a**(2/3)*b**
(2/3))

_______________________________________________________________________________________

Mathematica [A]  time = 0.187235, size = 176, normalized size = 0.96 \[ \frac{\left (a^{2/3} e-\sqrt [3]{a} \sqrt [3]{b} d\right ) \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )+2 \left (\sqrt [3]{a} \sqrt [3]{b} d-a^{2/3} e\right ) \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )-2 b^{2/3} c \log \left (a+b x^3\right )-2 \sqrt{3} \sqrt [3]{a} \left (\sqrt [3]{a} e+\sqrt [3]{b} d\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt{3}}\right )+6 b^{2/3} c \log (x)}{6 a b^{2/3}} \]

Antiderivative was successfully verified.

[In]  Integrate[(c + d*x + e*x^2)/(x*(a + b*x^3)),x]

[Out]

(-2*Sqrt[3]*a^(1/3)*(b^(1/3)*d + a^(1/3)*e)*ArcTan[(1 - (2*b^(1/3)*x)/a^(1/3))/S
qrt[3]] + 6*b^(2/3)*c*Log[x] + 2*(a^(1/3)*b^(1/3)*d - a^(2/3)*e)*Log[a^(1/3) + b
^(1/3)*x] + (-(a^(1/3)*b^(1/3)*d) + a^(2/3)*e)*Log[a^(2/3) - a^(1/3)*b^(1/3)*x +
 b^(2/3)*x^2] - 2*b^(2/3)*c*Log[a + b*x^3])/(6*a*b^(2/3))

_______________________________________________________________________________________

Maple [A]  time = 0.008, size = 207, normalized size = 1.1 \[{\frac{c\ln \left ( x \right ) }{a}}+{\frac{d}{3\,b}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{d}{6\,b}\ln \left ({x}^{2}-x\sqrt [3]{{\frac{a}{b}}}+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}+{\frac{d\sqrt{3}}{3\,b}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ) \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{e}{3\,b}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{e}{6\,b}\ln \left ({x}^{2}-x\sqrt [3]{{\frac{a}{b}}}+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{\sqrt{3}e}{3\,b}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ){\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-{\frac{c\ln \left ( b{x}^{3}+a \right ) }{3\,a}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x^2+d*x+c)/x/(b*x^3+a),x)

[Out]

c*ln(x)/a+1/3/b/(a/b)^(2/3)*ln(x+(a/b)^(1/3))*d-1/6/b/(a/b)^(2/3)*ln(x^2-x*(a/b)
^(1/3)+(a/b)^(2/3))*d+1/3/b/(a/b)^(2/3)*3^(1/2)*arctan(1/3*3^(1/2)*(2/(a/b)^(1/3
)*x-1))*d-1/3/b/(a/b)^(1/3)*ln(x+(a/b)^(1/3))*e+1/6/b/(a/b)^(1/3)*ln(x^2-x*(a/b)
^(1/3)+(a/b)^(2/3))*e+1/3/b*3^(1/2)/(a/b)^(1/3)*arctan(1/3*3^(1/2)*(2/(a/b)^(1/3
)*x-1))*e-1/3*c*ln(b*x^3+a)/a

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^2 + d*x + c)/((b*x^3 + a)*x),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^2 + d*x + c)/((b*x^3 + a)*x),x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x**2+d*x+c)/x/(b*x**3+a),x)

[Out]

Timed out

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.215654, size = 267, normalized size = 1.45 \[ -\frac{c{\rm ln}\left ({\left | b x^{3} + a \right |}\right )}{3 \, a} + \frac{c{\rm ln}\left ({\left | x \right |}\right )}{a} + \frac{\sqrt{3}{\left (\left (-a b^{2}\right )^{\frac{1}{3}} b d - \left (-a b^{2}\right )^{\frac{2}{3}} e\right )} \arctan \left (\frac{\sqrt{3}{\left (2 \, x + \left (-\frac{a}{b}\right )^{\frac{1}{3}}\right )}}{3 \, \left (-\frac{a}{b}\right )^{\frac{1}{3}}}\right )}{3 \, a b^{2}} - \frac{{\left (a^{2} b \left (-\frac{a}{b}\right )^{\frac{1}{3}} e + a^{2} b d\right )} \left (-\frac{a}{b}\right )^{\frac{1}{3}}{\rm ln}\left ({\left | x - \left (-\frac{a}{b}\right )^{\frac{1}{3}} \right |}\right )}{3 \, a^{3} b} + \frac{{\left (\left (-a b^{2}\right )^{\frac{1}{3}} a b^{3} d + \left (-a b^{2}\right )^{\frac{2}{3}} a b^{2} e\right )}{\rm ln}\left (x^{2} + x \left (-\frac{a}{b}\right )^{\frac{1}{3}} + \left (-\frac{a}{b}\right )^{\frac{2}{3}}\right )}{6 \, a^{2} b^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^2 + d*x + c)/((b*x^3 + a)*x),x, algorithm="giac")

[Out]

-1/3*c*ln(abs(b*x^3 + a))/a + c*ln(abs(x))/a + 1/3*sqrt(3)*((-a*b^2)^(1/3)*b*d -
 (-a*b^2)^(2/3)*e)*arctan(1/3*sqrt(3)*(2*x + (-a/b)^(1/3))/(-a/b)^(1/3))/(a*b^2)
 - 1/3*(a^2*b*(-a/b)^(1/3)*e + a^2*b*d)*(-a/b)^(1/3)*ln(abs(x - (-a/b)^(1/3)))/(
a^3*b) + 1/6*((-a*b^2)^(1/3)*a*b^3*d + (-a*b^2)^(2/3)*a*b^2*e)*ln(x^2 + x*(-a/b)
^(1/3) + (-a/b)^(2/3))/(a^2*b^4)